package com.seata.stock.dao;

import com.seata.stock.pojo.Stock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Description:
 * @ClassName: StockDao
 * @Author:
 * @Date:
 * @Version: 1.0
 */
@Mapper
@Repository
public interface StockDao {
    //获取库存
    public Stock searchStock(@Param("productId") Integer productId);
    //更新库存
    public Integer updateStock(Stock stock);
}
